public class One {
    public String solve (String s, String t) {
        StringBuffer ret=new StringBuffer();
        int i=s.length()-1,j=t.length()-1;
        int tmp=0;
        while (i>=0||j>=0||tmp!=0){
            if(i>=0){
                tmp+=s.codePointAt(i--)-'0';
            }
            if(j>=0){
                tmp+=t.codePointAt(j--)-'0';
            }
            ret.append((char)(tmp%10+'0'));
            tmp/=10;
        }
        return  ret.reverse().toString();
    }
}
